﻿// -----------------------------------------------------------------------
// <copyright file="TaskGetProcess.cs" company="DarkBone">
// DarkBone
// </copyright>
// -----------------------------------------------------------------------

namespace DarkBone.Engine.Tasks
{
   using System;

   /// <summary>
   /// Gets requested process
   /// </summary>
   [Serializable]
   public class TaskGetProcess : Task
   {
      /// <summary>
      /// Process name
      /// </summary>
      public readonly string ProcessName;

      /// <summary>
      /// Gets or sets the process id.
      /// </summary>
      /// <value>
      /// The process id.
      /// </value>
      public int ProcessId { get; set; }

      /// <summary>
      /// Initializes a new instance of the <see cref="TaskGetProcess"/> class.
      /// </summary>
      /// <param name="processName">
      /// The process name.
      /// </param>
      public TaskGetProcess(string processName)
      {
         this.Id = ID.GetProcess;
         this.ProcessName = processName;
         this.Result = false;
      }
   }
}
